const mongoose = require('mongoose');
const serviceModel = require('./serviceModel');
const userModel = require('./userModel');
const adminModel = require('./adminModel');
const shopDoorModel = require('./shopDoorModel');



const orderServiceSchema = new mongoose.Schema({
    serviceId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: serviceModel
    },
    time:String,
    userId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: userModel
    },
    //获取门店管理员的信息
    adminId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: adminModel
    },
    shopDoorId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: shopDoorModel
    }

    
})
module.exports = mongoose.model('orderServiceModel', orderServiceSchema, 'orderServices');